package com.qingyun.video.controller;


import com.qingyun.model.common.dtos.R;
import com.qingyun.model.video.dtos.PublishDto;
import com.qingyun.video.service.PublishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/publish")
public class PublishController {

    @Autowired
    private PublishService publishService;


    @PostMapping("/submit")
    public R submitNews(@RequestBody PublishDto dto){
        return publishService.submitNews(dto);
    }


}
